//
//  HZC_MBHud.h
//  Co8
//
//  Created by Hanzengchao on 2017/12/6.
//

#import <Foundation/Foundation.h>
#import <MBProgressHUD/MBProgressHUD.h>
@class YYJ_MBHud;
// 动画效果
typedef enum{
    Co8MBProgressModeOnlyText=10,           //蒙文字
    Co8MBProgressModeOnlyText_zh,           //中文字
    Co8MBProgressModeLoading,              //加载菊花
    Co8MBProgressModeCircleLoading,         //加载圆形
    Co8MBProgressModeSuccess               //成功
}Co8MBProgressMode;

@interface YYJ_MBHud : NSObject

/*===============================   属性   ================================================*/

@property (nonatomic,strong) MBProgressHUD  *hud;


/*===============================   方法   ================================================*/

+(instancetype)shareinstance;

//显示
+(void)show:(NSString *)msg inView:(UIView *)view mode:(Co8MBProgressMode)myMode;

//单纯显示加载菊花
+(void)showView:(UIView *)view;

//隐藏
+(void)hide;

//只显示文字
+(void)showOnlyText:(NSString *)msg inView:(UIView *)view;

//显示进度
+(void)showProgress:(NSString *)msg inView:(UIView *)view;

//显示成功提示
+(void)showSuccess:(NSString *)msg inview:(UIView *)view;

+(void)showLodingMessage:(NSString *)msg inView:(UIView *)view;

//显示提示（1秒后消失）
+(void)showMessage:(NSString *)msg inView:(UIView *)view;

//显示提示（1秒后消失）
+(void)showMessage_zh:(NSString *)msg inView:(UIView *)view;

//显示提示（N秒后消失）
+(void)showMessage:(NSString *)msg inView:(UIView *)view afterDelayTime:(NSInteger)delay;

//在最上层显示(暂时不要使用)
+(void)showMsgWithoutView:(NSString *)msg;

//进度条
+(void)showProgress:(CGFloat )progress
              title:(NSString *)msg
             inView:(UIView *)view;
@end
